DockA() [v1.0]

作者: majkinetor 最近更新时间: nonexistent


Using dock module you can glue windows to an AHK window.

Docked windows are called Clients and the window that keeps their position relative to itself is called the Host. Once Clients are connected to the Host, this group of windows will behave like single window - moving, sizing, focusing, hiding and other OS events will be handled by the module so that the 揷omposite window� behaves like the single window.

This module is version of Dock module that supports only AHK hosts (hence A in the name). Unlike Dock module, it doesn抰 uses system hook to monitor windows changes.

DockA(HHost="", HClient="", DockDef="")
DockA_(HHost+0, HClient+0, DockDef, "")

关于函数的参数和返回值, 请参阅其源码.

备注

This module is part of the Forms Framework package.

See at Dock for regular Windows:
* GUID=a7a64970-955f-126a-96cc-1a6e80e6c03f

关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?t=53317

许可

此函数(集)是基于 BSD 许可的开源项目. 想了解许可详情, 请参见 http://creativecommons.org/licenses/BSD/

示例

; #Include DockA.ahk
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

Gui, 2:Add, Text, HwndH2, client
Gui, 2:Show, h100 w200
Gui, 2:+LastFound
cGui := WinExist("A")

Gui, 1:Add, Text, HwndH1, host
Gui, 1:Show, h100 w200
Gui, 1:+LastFound
hGui := WinExist("A")

DockA(hGui, cGui, "x(1) y()")
Return

GuiClose:
ExitApp